package com.neuedu.his.controller;

import com.alibaba.fastjson.JSON;

import com.neuedu.his.common.Page;
import com.neuedu.his.common.Ret;
import com.neuedu.his.common.core.BaseController;
import com.neuedu.his.entity.ConstantsItem;
import com.neuedu.his.common.core.BaseService;
import com.neuedu.his.service.ConstantsItemService;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;


@WebServlet("/constantsItem/*")
public class ConstantsItemController extends BaseController<ConstantsItem> {

    ConstantsItemService constantsItemService = new ConstantsItemService();


    @Override
    public BaseService getService() {
        return  constantsItemService ;
    }


    /**
     * 查询 常数 根据类型   gender  1 2 3  YorN   Y N
     * @param request
     * @param response
     * @return
     */
    public List<ConstantsItem> getItemsByType(HttpServletRequest request , HttpServletResponse response){
        return constantsItemService.getItemsByType(request);
    }


}